Learn R Programming

Compositional (version 5.4)

Contour plot of the Gaussian mixture model in S^2: Contour plot of the Gaussian mixture model in \(S^2\)

Description

Contour plot of the Gaussian mixture model in \(S^2\).

Usage

mixnorm.contour(mod, type = "alr", x = NULL, cont.line = FALSE)

Arguments

mod

An object containing the output of a mix.compnorm model.

type

The type of trasformation used, either the additive log-ratio ("alr"), the isometric log-ratio ("ilr") or the pivot coordinate ("pivot") transformation.

cont.line

Do you want the contour lines to appear? If yes, set this TRUE.

x

A matrix with the compositional data.

Value

A ternary plot with the data and the contour lines of the fitted Gaussian mixture model.

Details

The contour plot of a Gaussian mixture model is plotted. For this you need the (fitted) model.

References

Ryan P. Browne, Aisha ElSherbiny and Paul D. McNicholas (2015). R package mixture: Mixture Models for Clustering and Classification

Aitchison J. (1986). The statistical analysis of compositional data. Chapman & Hall.

See Also

mix.compnorm, bic.mixcompnorm, diri.contour

Examples

Run this code
# NOT RUN {
x <- as.matrix(iris[, 1:3])
x <- x / rowSums(x)
mod <- mix.compnorm(x, 3, model = "EII")
mixnorm.contour(x, "alr", mod)
# }

Run the code above in your browser using DataLab